/*
logo.c
LOGO打印
这段函数用于在字符模式屏幕上打印xinix的LOGO
好吧，其实没有什么用处，纯属装x
Copyright (c) 2018 by Loganx.
*/
#include"../boot/multiboot.h"
#include"../drive/console.h"

#define LOGO_ROW    10
#define LOGO_COL    52

unsigned char xlogo[LOGO_ROW][LOGO_COL]={
    "                                 .:`               ",
    "            .;x!.                'xx;              ",
    "             `||`                                  ",
    ";xx|` '|xx:  ''.        ;xxxx;   'xx: .''       .''",
    " '|x||xx|`   ;x|'  `|xx|;.'|x|`  'xx:  `!x!. .!x|`.",
    "  .!xxx;     ;x|'  `|x|`  .!x|`  'xx:   .!x!;|x!`  ",
    "  ;xxxxx'    ;x|'  `|x;.  .!x|`  'xx:    .!xxx!.   ",
    " ;x|' :xx:   ;x|'  `|x;   .!x|`  'xx:    :xxxxx:   ",
    ";x|`   :xx:  ;x|'  `|x;   .!x|`  'xx:  `!xx;`;xx!..",
    "             '!|'  `|x;.              .;|x'   :xx;'",
};

void PrintLogo(void){
    unsigned char i,j;

    for(i=0;i<LOGO_ROW;i++){
        for(j=0;;j++){
            if(xlogo[i][j]=='\0')
                break;
            else
                ConsolePutChar(xlogo[i][j]);
        }
        ConsoleGotoNexty();
    }

    return;
}
